D_AARCH64_MSLOG_LIBS :=`pkg-config --libs libmslog_aarch64`
D_AARCH64_MSLOG_INCLUDES :=`pkg-config --cflags libmslog_aarch64`
C_AARCH64_INCLUDE=${D_BASEAPI_FLAGS} -Isrc -Isrc/denc ${D_AARCH64_MSLOG_INCLUDES}  -DOS_LINUX_X64 
C_AARCH64_LIBS=${D_AARCH64_MSLOG_LIBS} -pthread 
libmscommon_aarch64_CC=aarch64-linux-gnu-gcc
libmscommon_aarch64_SRC=${C_SRC}
libmscommon_aarch64_CFLAGS=${C_AARCH64_INCLUDE} ${C_AARCH64_LIBS} ${CFLAGS_SHARE}

aarch64:libmscommon_aarch64 install_aarch64

libmscommon_aarch64: 
	mkdir -p $(OUT_LIB)
	mkdir -p $(OUT_INCLUDE)
	cp -fr src/*.h src/denc/*.h $(OUT_INCLUDE)
	$($@_CC)  $($@_SRC)  $($@_CFLAGS)  -o $(OUT_LIB)/$(PROGRAM_NAME).so 
	
install_aarch64: 
	mkdir -p  ${prefix_aarch64}/lib/ 
	mkdir -p  ${prefix_aarch64}/include/   
	mkdir -p  ${prefix_aarch64}/lib/pkgconfig/ 
	cp -fr $(OUT_LIB)/$(PROGRAM_NAME).so		${prefix_aarch64}/lib/     
	cp -fr $(OUT_INCLUDE) 	                  	${prefix_aarch64}/include/	     
	cp -fr platform/$(PROGRAM_NAME)_aarch64.pc	${prefix_aarch64}/lib/pkgconfig/
	
uninstall_aarch64:
	rm -fr ${prefix_aarch64}/lib/$(PROGRAM_NAME).so 
	rm -fr ${prefix_aarch64}/include/$(PROGRAM_NAME)
	rm -fr ${prefix_aarch64}/lib/pkgconfig/$(PROGRAM_NAME)_aarch64.pc
